﻿using IOCDemo.IocVersion2;

namespace IOCDemo;

public class ShowName:IShowName
{
    private IWebCient _webCient;

    public ShowName(IWebCient webCient)
    {
        _webCient = webCient;
    }

    public void Print()
    {
        Console.WriteLine("This is a Show Name");
    }
    public void PrintWithWebClient()
    {
        _webCient.GetUrl();
    }
    
}